@extends('layouts.app')
@section('header')
     @include('common.header')
@stop
@section('title', config('index_title').'-我的需求')
@section('footer')
     @include('common.footer')
@stop
@section('content')

    <link href="/front/Content/assets/css/codemirror.css" rel="stylesheet" />
        <link href="/front/Content/tixianjilv.css" rel="stylesheet" />

    <link href="/front/Content/wodeshuju.css" rel="stylesheet" />
        <script src="/front/Scripts/wangEditor.min.js"></script>
        <style>
.selectclass{width: 200px; height: 30px ;line-height: 30px; text-align: center;}
</style>
<div class="banner1"></div>
<div class="xtxx">
    <div class="xtxx_top">
        <div class="xtxx_tit"><p><a href="/home">个人中心</a>&nbsp;&gt;&nbsp;<a href="javascript:;">我的留言</a></p></div>
    </div>
    <div class="wdda">
        <div class="wdda_left fl" style="width: 185px">
            <ul class="shuji-nav">
                <li class="navdowna"><a href="/user/dataCenter">我的留言</a></li>
            </ul>
        </div>
        <div class="profit_right mt60 mb238" style="width: 945px;">
<div class="lbgs">
                <table border="0" cellpadding="0" cellspacing="0" class="bgys1" width="100%">
                    <thead>
                        <tr>
                            <td bgcolor="#009ee7">
                                <div align="center" class="STYLE1">创建时间</div>
                            </td>
                            <td bgcolor="#009ee7">
                                <div align="center" class="STYLE1">姓名</div>
                            </td>
                            <td bgcolor="#009ee7">
                                <div align="center" class="STYLE1">公司名称</div>
                            </td>
                            <td bgcolor="#009ee7">
                                <div align="center" class="STYLE1">状态</div>
                            </td>
                            <td bgcolor="#009ee7">
                                <div align="center" class="STYLE1">管理</div>
                            </td>
                        </tr>
                    </thead>
                    <tbody id="tbody">
                    @foreach($pageList as $row)
                    <tr>
                            <td>
                                <div align="center" class="">{{$row->updated_at->toDateString()}}</div>
                            </td>
                            <td>
                                <div align="center" class="">{{$row->name}}</div>
                            </td>
                            <td>
                                <div align="center" class="">
                                {{$row->company}}
                                </div>
                            </td>
                            <td>
                                <div align="center" class="">
                                {{$row->replay?'已回复':'待回复'}}
                                </div>
                            </td>
                            <td>
                                <div align="center" class=""><a href="javascript:;" onclick="showfacebook({{$row->id}});">查看回复</a></div>
                            </td>
                        </tr>
                    @endforeach

                    </tbody>
                </table>

                <div class="dede_pages"><ul class="pagelist">
                {{ $pageList->links('common.paginator', [ 'results'=>$pageList ]) }}
                </ul></div>


            </div>
        </div>

    </div>
</div>
<script>


</script>
<script type="text/javascript">
$(function(){
	@if(session('status'))
		layer.msg("{{session('status')}}");
	@endif
})
function showfacebook(id)
{
	ajaxurl('/user/facebook/'+id,{},function(res){
		layer.open({
    		title: res.company,
    		type: 1,
    		  skin: 'layui-layer-rim', //加上边框
    		  area: ['620px', '440px'], //宽高
    		  content: res.replay==null?'未回复':res.replay
    		});
	})
}
</script>
@endsection
